﻿<h3 class="yellow">Inscription</h3>
<?php echo validation_errors(); ?>

<?php echo form_open('inscription'); ?>
<table class="formulaire">
    <tr>
        <td><label for="nom">Nom</label></td>
        <td><input type="text" name="nom" /></td>
    </tr>
    <tr>
        <td><label for="prenom">Prénom</label></td>
        <td><input type="text" name="prenom" /></td>
    </tr>
    <tr>
        <td><label for="courriel">Courriel</label></td>
        <td><input type="text" name="courriel" /></td>
    </tr>
    <tr>
        <td><label for="mdp">Mot de passe</label></td>
        <td><input type="password" name="mdp" /></td>
    </tr>
    <tr>
        <td><label for="confirmation_mdp">Confirmez le mot de passe</label></td>
        <td><input type="password" name="confirmation_mdp" /></td>
    </tr>
    <tr>
        <td><label for="telephone">Téléphone</label></td>
        <td><input type="text" name="telephone" /></td>
    </tr>
    <tr>
        <td><label for="adresse">Adresse</label></td>
        <td><input type="text" name="adresse" /></td>
    </tr>
    <tr>
        <td><label for="prenom">Prénom</label></td>
        <td><input type="text" name="prenom" /></td>
    </tr>
    <tr>
        <td><label for="groupe">Groupe</label></td>
        <td>
            <select name="groupe">
<?php
print_r($groupes);
foreach($groupes as $groupe)
{
    echo '                <option value="' . $groupe->identifiant . '">' . $groupe->description . '</option>' . "\n";
}
?>
            </select>
        </td>
    </tr>
    <tr>
        <td></td>
        <td><button type="submit">S'inscrire</button></td>
    </tr>
</table>
<?php echo form_close(); ?>
